$$('a[href!=""]').each(function (link)
{
    if (link.readAttribute('href').toLowerCase().include('.pdf'))
    {
        var googleTrackLink = link.readAttribute('href');

        link.observe('click', function () { pageTracker._trackPageview(googleTrackLink); });
    }
});
